
<%@ page import="mms.RestaurantCompany" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'restaurantCompany.label', default: 'RestaurantCompany')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
        <g:javascript src="restaurantCompany/list.js" />
    </head>
    <body>
        <div class="nav">
            <g:form  action="list">
                <g:textField name="keyword" value="${keyword}" size="20" />
                <g:submitButton name="search" value="搜索" />
            </g:form>
         </div>
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="id" title="${message(code: 'restaurantCompany.id.label', default: 'Id')}" />
                        
                            <g:sortableColumn property="name" title="${message(code: 'restaurantCompany.name.label', default: 'Name')}" />
                        
                            <g:sortableColumn property="loginName" title="${message(code: 'restaurantCompany.loginName.label', default: 'Login Name')}" />
                        
                            <g:sortableColumn property="password" title="${message(code: 'restaurantCompany.password.label', default: 'Password')}" />
                        
                            <g:sortableColumn property="address" title="${message(code: 'restaurantCompany.address.label', default: 'Address')}" />
                        
                            <th><g:message code="restaurantCompany.incorporator.label" default="Incorporator" /></th>
                          <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${restaurantCompanyInstanceList}" status="i" var="restaurantCompanyInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td>${fieldValue(bean: restaurantCompanyInstance, field: "id")}</td>
                        
                            <td><g:link action="show" id="${restaurantCompanyInstance.id}">${fieldValue(bean: restaurantCompanyInstance, field: "name")}</g:link></td>
                        
                            <td>${fieldValue(bean: restaurantCompanyInstance, field: "loginName")}</td>
                        
                            <td>${fieldValue(bean: restaurantCompanyInstance, field: "password")}</td>
                        
                            <td>${fieldValue(bean: restaurantCompanyInstance, field: "address")}</td>
                        
                            <td>${fieldValue(bean: restaurantCompanyInstance, field: "incorporator")}</td>
                          <td>
                                <g:link  action="edit" id="${restaurantCompanyInstance.id}">编辑</g:link>
                                <g:link  action="editgis" id="${restaurantCompanyInstance.id}">高级编辑</g:link>
                            </td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${restaurantCompanyInstanceTotal}" params="[keyword : keyword?.encodeAsURL()]"/>
            </div>
        </div>
    </body>
</html>
